﻿using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Processing;

namespace XxSystem.FileManager.Controllers
{
    public class ImgCovert
    {
        public static void SaveNewSize(string orgin, int width, int height, string newfile) {
            using Image image = Image.Load(orgin);
            image.Mutate(x => x.Resize(width, height));
            image.Save(newfile);
        }
    }
}
